Ext.define('TS.view.general.user.Grid' , {
	extend: 'TS.lib.Grid',
	alias : 'widget.usergrid',
	tbar:Factory.toolbar.search(['->',Factory.btn._('CleanCache',function(){
		Util.request(URL.util.cleancache);
	}),Factory.btn._('DumpSQL',function(){
		Util.request(URL.util.dumpsql);
	})]),
	frame:false,
	store: 'User',
	columns: [
	 	{xtype: 'rownumberer'},{
			header:'ID',
			hidden:true,
			dataIndex:'user_id'
		},{
			header:'user_login',
			sortable:true,
			dataIndex:'user_login'
		},{
			header:'user_password',
			sortable:true,hidden:true,
			dataIndex:'user_password'
		},{
			header:'denomination_id',
			renderer:Factory.rend.dict(Dict.denomination),
			dataIndex:'denomination_id'
		},{
			header:'user_firstname',
			sortable:true,
			dataIndex:'user_firstname'
		},{
			header:'user_lastname',
			sortable:true,
			dataIndex:'user_lastname'
		},{
			header:'user_birthday',
			sortable:true,hidden:true,
			dataIndex:'user_birthday'
		},{
			header:'user_occupation',
			sortable:true,hidden:true,
			dataIndex:'user_occupation'
		},{
			header:'user_town',
			sortable:true,hidden:true,
			dataIndex:'user_town'
		},{
			header:'acl_role_id',
			renderer:Factory.rend.dict(Dict.aclrole),
			dataIndex:'acl_role_id'
		},{
			header:'user_active',
			renderer:Factory.rend.dict(Dict.yesNo),
			dataIndex:'user_active'
		}
	]
});
